# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-pyclip
pkgver=0.5.4
pkgrel=2
pkgdesc="Cross-platform clipboard utilities supporting both binary and text data"
url="https://github.com/spyoungtech/pyclip"
arch="noarch"
license="Apache-2.0"
depends="
	cmd:xclip
	python3
	"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://github.com/spyoungtech/pyclip/archive/v$pkgver/pyclip-v$pkgver.tar.gz"
options="!check" # Requires working tty
builddir="$srcdir/pyclip-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
c0ec789ac7b13e34d9ad91006b3b6369d552d0b79b8fc7de93f4817b0540ca889238a4bbb8ee0ac0b573d644822982f99a3ca2562dc3091440441e8d9c2361dc  pyclip-v0.5.4.tar.gz
"
